/*
 * HotelInfoPanel.java
 *
 * Created on August 20, 2007, 8:30 PM
 */

package org.oslo.ui;

import javax.swing.Icon;
import org.oslo.ui.util.ImageHelper;

/**
 *
 * @author  nl24167
 */
public class HotelInfoPanel extends javax.swing.JDialog {
    
    /** Creates new form HotelInfoPanel */
    public HotelInfoPanel() {
        initComponents();
//        BufferedImage bufImage = ImageIO.read(new ByteArrayInputStream(info.getImageData()));
//	Graphics2D graphics = bufImage.createGraphics();
//			
//	AlphaComposite myAlpha = AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.3f);
//	Graphics.setComposite(myAlpha);
//			
//	this.drawTokens(info, rootTokenInfo, graphics);
//		
//	graphics.dispose();
//			
//	OutputStream out = response.getOutputStream();
//	ImageIO.write(bufImage, "jpeg", out);	
//	out.flush();
        
        Icon icon = ImageHelper.createImageIcon("resources/images/trans-stars-small.png","desc" );
        jLabel2.setIcon(icon);
        
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {

        nameLabel = new javax.swing.JLabel();
        addressLabel = new javax.swing.JLabel();
        cityLabel = new javax.swing.JLabel();
        nameField = new javax.swing.JTextField();
        addressField = new javax.swing.JTextField();
        cityField = new javax.swing.JTextField();
        lowPriceField = new javax.swing.JTextField();
        priceLabel = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        priceFieldHigh = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();

        setResizable(false);

        nameLabel.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("nameLabel.text")); // NOI18N

        addressLabel.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("addressLabel.text")); // NOI18N

        cityLabel.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("cityLabel.text")); // NOI18N

        nameField.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("nameField.text")); // NOI18N

        addressField.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("addressField.text")); // NOI18N

        cityField.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("cityField.text")); // NOI18N

        lowPriceField.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("lowPriceField.text")); // NOI18N

        priceLabel.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("priceLabel.text")); // NOI18N

        jLabel1.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("jLabel1.text")); // NOI18N

        priceFieldHigh.setText(application.Application.getInstance(org.oslo.ui.OSLOApp.class).getContext().getResourceMap(HotelInfoPanel.class).getString("priceFieldHigh.text")); // NOI18N

        jLabel2.setText("jLabel2");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(nameLabel)
                    .addComponent(addressLabel)
                    .addComponent(cityLabel)
                    .addComponent(priceLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cityField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
                    .addComponent(addressField, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
                    .addComponent(nameField, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lowPriceField, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(priceFieldHigh, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nameLabel)
                    .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(addressLabel)
                    .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cityLabel)
                    .addComponent(cityField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lowPriceField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(priceLabel)
                    .addComponent(jLabel1)
                    .addComponent(priceFieldHigh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField addressField;
    private javax.swing.JLabel addressLabel;
    private javax.swing.JTextField cityField;
    private javax.swing.JLabel cityLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField lowPriceField;
    private javax.swing.JTextField nameField;
    private javax.swing.JLabel nameLabel;
    private javax.swing.JTextField priceFieldHigh;
    private javax.swing.JLabel priceLabel;
    // End of variables declaration//GEN-END:variables
 
}
